Subject: Re: MUIA_Gauge_InfoText To: mui@sunsite.Informatik.RWTH-Aachen.DE Date: Mon, 27 May 1996 18:53:10 +0800 (WST) In-Reply-To: <495AF85A@intui.nervous.com> from "Massimiliano Origgi" at May 26, 96 04:35:33 pm X-Mailer: ELM [version 2.4 PL25] Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Resent-Message-Id: <"W0f9v2.0.ZA.edOgn"@sunsite> Resent-From: mui@sunsite.Informatik.RWTH-Aachen.DE Reply-To: mui@sunsite.Informatik.RWTH-Aachen.DE X-Mailing-List:archive/latest/1409 X-Loop: mui@sunsite.informatik.rwth-aachen.de Precedence: list Resent-Sender: mui-request@sunsite.Informatik.RWTH-Aachen.DE X-Lines: 18 Status: RO Content-Type: text/plain; charset="US-ASCII" Content-Length: 1011 > Hi all, > I think I have found a bug in Mui(3.3). > > If I set MUIA_Gauge_InfoText with the method MUIM_SetAsString I get a correct string > displayed only once. When the object has to redraw itself, I only get garbage or nothing > at all. It seems that the gauge class does not copy the string into an internal buffer. > If I use a static string everything works well. I wouldn't call it a bug, but you're right, it appears to be undocumented. The reason for not calling it a bug is because it's consistent with the behaviour of other attributes which take a string pointer -- AFAIK, none of them make local copies (probably for performance/memory reasons) and require you to keep a static string if you want it retained. -- Jason S Birch ,-_|\ email: jasonb@cs.uwa.edu.au Department of Computer Science / \ Tel (work): +61 9 380 1840 The University of Western Australia *_.-._/ Fax (work): +61 9 380 1089 Nedlands W. Australia 6907 v Tel (home): +61 9 386 8630